<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style type="text/css">
	#queryPoint {
		margin-right: 300px;
		margin-top: 30px;
	}
</style>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-iPole-edit" th:object="${iPole}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group" hidden>
				<label class="col-sm-3 control-label">所属点位ID：</label>
				<div class="col-sm-8">
					<input id="pId" name="pId" th:field="*{pId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">运行编号：</label>
				<div class="col-sm-8">
					<input id="runNumber" name="runNumber" th:field="*{runNumber}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">杆塔性质：</label>
				<div class="col-sm-8">
					<!--<input id="type" name="type" th:field="*{type}" class="form-control" type="text">-->
					<select id="type" class="form-control" name="type"
							th:with="type=${@dict.getType('gt_type')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{type}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">杆高：</label>
				<div class="col-sm-8">
					<!--<input id="poleHeight" name="poleHeight" th:field="*{poleHeight}" class="form-control" type="text">-->
					<select id="poleHeight" class="form-control" name="poleHeight"
							th:with="type=${@dict.getType('pole_height')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{poleHeight}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">资产单位：</label>
				<div class="col-sm-8">
					<input id="unit" name="unit" th:field="*{unit}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">运维班组：</label>
				<div class="col-sm-8">
					<input id="runTeam" name="runTeam" th:field="*{runTeam}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">电杆材质：</label>
				<div class="col-sm-8">
					<!--<input id="poleMaterial" name="poleMaterial" th:field="*{poleMaterial}" class="form-control" type="text">-->
					<select id="poleMaterial" class="form-control" name="poleMaterial"
							th:with="type=${@dict.getType('gt_material')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{poleMaterial}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">电杆数量：</label>
				<div class="col-sm-8">
					<input id="poleNum" name="poleNum" th:field="*{poleNum}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group" hidden>
				<label class="col-sm-3 control-label">创建日期：</label>
				<div class="col-sm-8">
					<input id="addDate" name="addDate" th:field="*{addDate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group" hidden>
				<label class="col-sm-3 control-label">创建人：</label>
				<div class="col-sm-8">
					<input id="addUser" name="addUser" th:field="*{addUser}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group" hidden>
				<label class="col-sm-3 control-label">最近更新人：</label>
				<div class="col-sm-8">
					<input id="updateUser" name="updateUser" th:field="*{updateUser}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group" hidden>
				<label class="col-sm-3 control-label">最近更新日期：</label>
				<div class="col-sm-8">
					<input id="updateDate" name="updateDate" th:field="*{updateDate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group" hidden>
				<label class="col-sm-3 control-label">数据状态：</label>
				<div class="col-sm-8">
					<input id="datastate" name="datastate" th:field="*{datastate}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "assets/iPole";
		$("#form-iPole-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
//		function submitHandler() {
//	        if ($.validate.form()) {
//	            $.operate.save(prefix + "/edit", $('#form-iPole-edit').serialize());
//	        }
//	    }



	</script>
</body>
</html>
